package server.catalina;

import java.util.List;

/**
 *  Host
 */
public class Host {

    /**
     *  虚拟站点名称，如：localHost
     */
    private String name;
    /**
     * 该站点资源的绝对路径
     */
    private String appBase;
    /**
     *  虚拟站点的所有具体资源
     */
    private List<Context> contexts;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAppBase() {
        return appBase;
    }

    public void setAppBase(String appBase) {
        this.appBase = appBase;
    }

    public List<Context> getContexts() {
        return contexts;
    }

    public void setContexts(List<Context> contexts) {
        this.contexts = contexts;
    }

    @Override
    public String toString() {
        return "Host{" +
                "name='" + name + '\'' +
                ", appBase='" + appBase + '\'' +
                ", contexts=" + contexts +
                '}';
    }
}
